<template>
  <el-input ref="compRef" v-bind="$attrs">
    <template v-for="(_, key) in $slots" :key="key" v-slot:[key]>
      <slot :name="key"></slot>
    </template>
  </el-input>
</template>
<script setup lang="ts">
const compRef = ref()
const defaultExposeObj = {}
onMounted(() => {
  Object.assign(defaultExposeObj, compRef.value)
})
defineExpose(Object.assign(defaultExposeObj, {}))
</script>
<script lang="ts">
export default {
  name: 'x-input'
}
</script>
